package com.sservice.commonBusiness.service;

import com.sservice.commonBusiness.e.Statistic;

import java.math.BigDecimal;

/**
 * Created by byte_su@163.com on 2018/02/05.
 */
public interface StatisticService {
    int record(String targetId, String type1, String fieldName, BigDecimal fieldValue); //

    int plus(String targetId, String type1, String fieldName); //

    /**
     * 设置字段值
     */
    int setField(Statistic statistic); //

    Statistic selectBy(String targetId, String type1); //

    /**
     * 更新评分
     *
     * @param targetId      // 目标ID
     * @param type1         统计类型
     * @param thisTimeScore 本次评分 多个用":"分隔
     * @return
     */
    int genScore(String targetId, String type1, String thisTimeScore); //


    int deleteByPrimaryKey(Integer id);

    int insertSelective(Statistic record);

    Statistic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Statistic record);
}
